<style>
	.widgetcontent p{
		margin-left:200px;
	}
	.rq, .error{color: red}
</style>
<ul class="breadcrumbs">
        <li><a href="dashboard.html"><i class="iconfa-home"></i></a> <span class="separator"></span></li>
        <li><a href="editprofile.html">Other Pages</a> <span class="separator"></span></li>
        <li>Edit Products</li>
        
        <li class="right">
            <a href="" data-toggle="dropdown" class="dropdown-toggle"><i class="icon-tint"></i> Color Skins</a>
            <ul class="dropdown-menu pull-right skin-color">
                <li><a href="default">Default</a></li>
                <li><a href="navyblue">Navy Blue</a></li>
                <li><a href="palegreen">Pale Green</a></li>
                <li><a href="red">Red</a></li>
                <li><a href="green">Green</a></li>
                <li><a href="brown">Brown</a></li>
            </ul>
        </li>
</ul>


<div class="pageheader">
	<?php foreach($this->edit_product as $key)
	{ ?>
            <form action="results.html" method="post" class="searchbar" />
                <input type="text" name="keyword" placeholder="To search type and hit enter..." />
            </form>
            <div class="pageicon"><span class="iconfa-laptop"></span></div>
            <div class="pagetitle">
                <h5>Sample Text Here</h5>
                <h1>Edit Product</h1>
            </div>
        </div><!--pageheader-->
        
        <div class="maincontent">
            <div class="maincontentinner">
            <form class="stdform" id="form1" method="post"  enctype="multipart/form-data" />
                <div class="row-fluid">
                    	<div class="span4 profile-left">
                        
                        <div class="widgetbox profile-photo">
                            <div class="headtitle">
                                <div class="btn-group">
                                    
                                </div>
                                <h4 class="widgettitle">Hình Ảnh</h4>
                            </div>
                            <div class="widgetcontent">
                                <div class="profilethumb">
                                    <img src="<?php echo $this->baseUrl()?>/public/images/products/<?php echo $key['prImage']?>" alt="" class="img-polaroid" />
                                    
                                    <input type="file" name="avatar" class="input-xlarge" value="Pixels" /> <span class="rq"> * </span>
                                </div><!--profilethumb-->
                            </div>
                        </div>
                            
                        </div><!--span4-->
                        
                        <div class="span8">
                                
                                <div class="widgetbox personal-information">
                                    <h4 class="widgettitle">Thông Tin Sản Phẩm</h4>
                                    <div class="widgetcontent">
                                        <p>
                                            <label>Tên Sản Phẩm:</label>
                                            <input type="text" name="name" class="input-xlarge" value="<?php echo $key['prName']?>" placeholder="Nhập tên sản phẩm" /> <span class="rq"> * </span>
                                        </p>
										<p>
                                            <label>Mô Tả:</label>
                                            <input type="text" name="describe" class="input-xlarge" value="<?php echo $key['prDescribe']?>"/> 
											<span class="rq"> * </span>
                                        </p>
                                        <p>
                                            <label>Phân Loại:</label>
                                            <select name="category">
												<?php foreach($this->show_catalogs as $data)
												{ 
													if($data['caID'] == $key['prCaID']){?>
														<option value="<?php echo $key['prCaID'] ?>" selected="selected"><?php echo $data['caName'] ?></option>
												<?php }
													else{ ?>
														<option value="<?php echo $key['prCaID'] ?>"> <?php echo $data['caName'] ?></option>
												<?php }} ?>
											</select> 
                                        </p>
                                    </div>
                                </div>
                 
                                
                                <p style="margin-left:360px">
                                	<button type="submit" class="btn btn-primary">Cập Nhật</button> <button type="reset" class="btn btn-primary">Làm Mới</button>
                                </p>
                                
                            </form>
                           <?php } ?>
                        </div><!--span8-->
                    </div><!--row-fluid-->